<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div id="test" style="width: 200px; height: 200px; background: #f00; position: absolute; top: 100px; left:100px"></div>


wanyuaning 17-10-07

@param e 计算相对数据所依赖<br>
@param option{开始，过程，结束，复合结果句柄，自动处理}<br>
>option.auto<br>
>>{类型，目标列表}<br>
>>>目标List{ dom , style初始}<br>
<br>

```javascript
lim.start(e , {
start: function () { console.log('start') },
process: function (ox, oy, x, y) { console.log(ox) },
end: function (ox, oy, time) { console.log('time:', time) },    //正常返回(偏移x,偏移y,用时)
rich: function (res) { console.log('Rich Result:', res) },    //返回丰富信息{x, y, ox, oy, fx, time}
auto: [
{ type: 'MOVE', target: [ { dom:tar, style:{left: l, top: t } } ] }
]
})
```

<br>
外部使计时器

```javascript
var timer = Lim.timer();
timer.start();    //计时开始
timer.end();    //计时结束，返回时长(毫秒)
```
外部事件邦定

```javascript
LIM.bind('mousemove', D, function (e) { console.log(9) });
```
<br>
依赖 element.js
<br><br><br><br>


</body>
</html>

<script src="../src/lim-17.10.7.js?v=3"></script>
<script>




    LIM.bind('dragstart', document.getElementById('test'), function (e) {
        var tar= e.target,
            l= parseInt(tar.style.left),
            t= parseInt(tar.style.top);

        lim.start(e , {
            start: function () { console.log('start') },
            process: function (ox, oy, x, y) { console.log(ox) },
            end: function (ox, oy, time) { console.log('time:', time) },    //正常返回(偏移x,偏移y,用时)
            rich: function (res) { console.log('Rich Result:', res) },    //返回丰富信息{x, y, ox, oy, fx, time}
            auto: [
                { type: 'MOVE', target: [ { dom:tar, style:{left: l, top: t } } ] }
            ]
        })
    });





    console.log(LIM.system)


</script>